package com.mrart.common.framework.constance;

import java.util.HashMap;
import java.util.Map;

/**
 * 出勤任务常量
 */
public class AttendanceConstance {
    /**
     * 出勤任务状态
     */
    public static String MISSION_ATTENDANCE_UNSTART = "UNSTART";
    public static String MISSION_ATTENDANCE_ARRIVAL = "ARRIVAL";
    public static String MISSION_ATTENDANCE_LEAVE = "LEAVE";
    public static String MISSION_ATTENDANCE_OUTING = "OUTING";
    public static String MISSION_ATTENDANCE_ONAUDIT = "ONAUDIT";
    
    /**
     * 出勤任务状态对应的名称
     */
    /*public static String MISSION_ATTENDANCE_UNSTART_DETAIL = "未开始";
    public static String MISSION_ATTENDANCE_ARRIVAL_DETAIL = "已到达";
    public static String MISSION_ATTENDANCE_LEAVE_DETAIL = "已离开";
    public static String MISSION_ATTENDANCE_OUTING_DETAIL = "外勤";
    public static String MISSION_ATTENDANCE_ONAUDIT_DETAIL = "待审批";*/
    
    public static Map<String, Object> MISSION_ATTENDANCE_STATUS_NAME_MAP = new HashMap<String, Object>(){
        {
            put(MISSION_ATTENDANCE_UNSTART, "未开始");
            put(MISSION_ATTENDANCE_ARRIVAL, "已到达");
            put(MISSION_ATTENDANCE_LEAVE, "已离开");
            put(MISSION_ATTENDANCE_OUTING, "外勤");
            put(MISSION_ATTENDANCE_ONAUDIT, "待审批");
        }
    };
    
    /**
     * 出勤任务日志状态
     */
    public static String MISSION_ATTENDANCE_LOG_ARRIVAL = "ARRIVAL";
    public static String MISSION_ATTENDANCE_LOG_LEAVE = "LEAVE";
    public static String MISSION_ATTENDANCE_LOG_APPLY = "APPLY";
    public static String MISSION_ATTENDANCE_LOG_APPROVE = "APPROVE";
    public static String MISSION_ATTENDANCE_LOG_REJECT = "REJECT";
    
    /**
     * 出勤签到方式
     */
    public static String MISSION_ATTENDANCE_TYPE_NORMAL = "1";//普通签到
    public static String MISSION_ATTENDANCE_TYPE_RELATION = "2";//关系签到
    
    /**
     * 出勤任务传给数据组LOG TYPE
     */
    public static String MISSION_ATTENDANCE_LOG_TYPE_SINGIN = "41001";//签到任务相关
    public static String MISSION_ATTENDANCE_LOG_TYPE_AUDIT = "41002";//审批任务相关
    
    /**
     * 出勤任务传给数据组LOG caseType
     */
    public static String MISSION_ATTENDANCE_CASETYPE_RELATION_SINGIN = "1";//任务关系签到
    public static String MISSION_ATTENDANCE_CASETYPE_RELATION_SINGOUT = "2";//任务关系签退
    public static String MISSION_ATTENDANCE_CASETYPE_NORMAL_SINGIN = "3";//任务普通签到
    public static String MISSION_ATTENDANCE_CASETYPE_NORMAL_SINGOUT = "4";//任务普通签退
    public static String MISSION_ATTENDANCE_CASETYPE_OUTSIDE_REPORT = "5";//任务外勤报备
    public static String MISSION_ATTENDANCE_CASETYPE_AUDIT = "1";//任务外勤审批
    
    /*
     * 出勤任务报备风信操作码
     */
    public static String MISSION_ATTENDANCE_REPORT_FENXIN_OPERATE_CODE = "02";
    
}
